package com.music.service;

import com.github.pagehelper.PageInfo;
import com.music.entity.Admin;
import com.music.entity.Singer;

import java.util.List;

public interface SingerService {
    List<Singer> findByCondition(Singer singer);


    /**
     * 林鑫海
     * 分页
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<Singer> getSingerByPage(int pageNum, int pageSize, Singer singer);

    /**
     * 林鑫海
     * 添加歌手
     * @param singer
     * @return
     */
    boolean addSinger(Singer singer);

    /**
     * 林鑫海
     * 修改歌手
     * @param singer
     * @return
     */
    boolean modifySinger(Singer singer);
}
